const common = require('./common');

const url = {
	login: "/zgb/v1/user/login", //登陆
	refreshToken: "/zgb/v1/user/refreshToken", //刷新token
	getObs: "/zgb/v1/config/obs", //获取obs配置
	getPhoneNumber: "/zgb/v1/user/getPhoneNumber", //获取手机号
	getPhoneVerificationCode: "/zgb/v1/user/getPhoneVerificationCode", //获取手机验证码
}

const login = (data) => {
	return common.req(url.login, data);
}
const getObs = (data) => {
	return common.req(url.getObs, data, 'get');
}
const getPhoneNumber = (data) => {
	return common.req(url.getPhoneNumber, data, 'get');
}
const getPhoneVerificationCode = (data) => {
	return common.req(url.getPhoneVerificationCode, data, 'get');
}

export default {
	login,
	getObs,
	getPhoneNumber,
	getPhoneVerificationCode
}